package trab3.time;

abstract public class Clock implements Comparable<Clock>{
	
	public String name() {
		return "?" ;
	}

	public int hashCode() {
		return name().hashCode() ;
	}
	
	public abstract TimeStamp value() ;
	
	public abstract Clock increment() ;
	
	public abstract Clock update( TimeStamp other ) ;

	public int compareTo( Clock other) {
		return name().compareTo(other.name() ) ; 
	}
}
